<template>
	<view class="search-containor">
		<view class="search-box" @click="searchHandler">
			<uni-icons type="search" size="35rpx"></uni-icons>
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			searchHandler(){
				this.$emit('click')
			}
		}
	}
</script>

<style lang="scss">
.search-containor{
	height: 100rpx;
	background-color: #007aff;
	display: flex;
	padding: 0 30rpx;
	justify-content: center;
	align-items: center;
	position: sticky;
	top: 0px;
	z-index: 10;
		
	.search-box{
		background-color: white;
		height: 60rpx;
		border-radius: 50rpx;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		
		text{
			font-size: 28rpx;
			margin-left: 10rpx;
		}
	}
}
</style>
